package com.tlw.leave.service;

import com.tlw.leave.entity.Information;
import com.tlw.leave.entity.Vo.Conditions;
import com.tlw.leave.entity.Vo.LeaveTime;
import com.tlw.leave.entity.Vo.PageVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Optional;

public interface InformationService {
    //增加
    public Information addInformation(Information information);

    //删除
    public void deleteInformation(Integer id);

    //修改
    public Information updateInformation(Information information);

    //查询
    public List<Information> finadAll();

    //根据id查询
    public Optional<Information> getInformationById(Integer id);

    //筛选
    public List<Information> findInformationName(String name);

    //分页查询
    public List<Information> getPageList(Integer page,Integer total);

    //分页查询pageable
    public Page<Information> getPageableList(PageVo pageVo);

    public List<Information> getTimeScope(LeaveTime leaveTime);

    public List<Information> getconditionsListInformation(Conditions conditions);
}
